﻿using System;
using App.Entity;
using System.Collections.Generic;

/*!
* 文件描述：一切从简，只为了更懒！
*/
namespace App.IServices
{
    public partial interface ISys_RoleAuthorizeServices : IBaseServices<Sys_RoleAuthorize>
    { 
        /// <summary>
        /// 获取角色权限
        /// </summary>
        /// <param name="ObjectId"></param>
        List<Sys_RoleAuthorize> GetList(string ObjectId);
        /// <summary>
        /// 获取角色的可访问菜单
        /// </summary>
        /// <param name="roleId">角色id</param>
        /// <returns></returns>
        List<Sys_Module> GetMenuList(string roleId);
        /// <summary>
        /// 获取角色的可访问按钮
        /// </summary>
        /// <param name="roleId">角色id</param>
        /// <returns></returns>
        List<Sys_ModuleButton> GetButtonList(string roleId);
        /// <summary>
        /// 验证角色访问权限
        /// </summary>
        /// <param name="roleId">角色id</param>
        /// <param name="moduleId">模块id</param>
        /// <param name="action">访问地址</param>
        /// <returns></returns>
        bool ActionValidate(string roleId, string moduleId, string action);
    }
}